tools/check: No need to check for ${PYTHON} existence.
authorKeir Fraser <keir.fraser@citrix.com>
Wed, 15 Jul 2009 13:53:01 +0000 (14:53 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Wed, 15 Jul 2009 13:53:01 +0000 (14:53 +0100)
It must exist as otherwise the build will fail since we reference
$(PYTHON) all over the place. Furthermore the fallback of
'/usr/bin/env python' actually runs Python, it doesn't get the path to
it. So that wouldn't work very well.

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
tools/check/check_python
tools/check/check_python_devel
tools/check/check_python_xml

index cdfe811c1453c4bb0b7baa7d5761e13657ae5f26..ed7bc3652b1f23a67c928ec29331d848af421b1c 100755 (executable)
@@ -3,10 +3,6 @@
 
 . ./funcs.sh
 
-if test -z ${PYTHON}; then
-       PYTHON=`/usr/bin/env python 2>/dev/null`
-fi
-
 ${PYTHON} -c '
 import sys
 sys.exit(sys.version_info[0] < 2 or sys.version_info[1] < 2)
index dd68568b9b79eb658b8ed99605965369f247a963..c8e0d93b2f601f2ff8d2ac7dcf1296b02ca340ef 100755 (executable)
@@ -3,9 +3,6 @@
 
 . ./funcs.sh
 
-if test -z ${PYTHON}; then
-       PYTHON=`/usr/bin/env python 2>/dev/null`
-fi
 has_or_fail ${PYTHON}
 
 ${PYTHON} -c '
index 13ef805e7582ca751541c16bbabc0658c41bdbc6..1932cb85b69fcdf969b42cb0d07b20c8b9dafa74 100755 (executable)
@@ -3,9 +3,6 @@
 
 . ./funcs.sh
 
-if test -z ${PYTHON}; then
-       PYTHON=`/usr/bin/env python 2>/dev/null`
-fi
 has_or_fail ${PYTHON}
 
 ${PYTHON} -c 'import xml.dom.minidom' 2>/dev/null || \